package com.jbm.jbmsupplier.activity.register.factoryuser

import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.View
import com.jbm.jbmsupplier.R
import com.jbm.jbmsupplier.activity.register.view.Register_Construction
import com.jbm.jbmsupplier.activity.register.view.Register_Manages
import com.jbm.jbmsupplier.utlis.ExitActivity
import kotlinx.android.synthetic.main.activity_user__register__mode.*
import kotlinx.android.synthetic.main.lz_titlehurdle.*

class User_Register_Mode : AppCompatActivity() ,View.OnClickListener{
    override fun onClick(v: View?) {
        when(v?.id){
            R.id.register_manage ->{
            startActivity(Intent(this@User_Register_Mode, Register_Manages :: class.java) )
            }
             R.id.register_operation ->{
                 startActivity(Intent(this@User_Register_Mode, Register_Construction :: class.java) )
                }
            R.id.teleft ->{
               finish()
            }
        }
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_user__register__mode)
        ExitActivity.getInstance().addActivity(this)
        register_manage.setOnClickListener(this)
        register_operation.setOnClickListener(this)
        teleft.setOnClickListener(this)
        tetitle.text="注册"
    }
}
